import VueRouter from 'vue-router'
//导入对应的路由组件
import HomeContainer from './components/tabbar/HomeContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import VipContainer from './components/tabbar/VipContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import NewList from './components/News/NewList.vue'
// 创建路由对象
const router = new VueRouter({
  routes:[// 配置路由规则的
    {path:'/',redirect:'/home'},
    {path:'/home',component:HomeContainer},
    {path:'/search',component:SearchContainer},
    {path:'/vip',component:VipContainer},
    {path:'/shopcar',component:ShopcarContainer},
    {path:'/home/newslist',component:NewList},
  ],
  linkActiveClass:'mui-active'//覆盖默认的路由高亮的类，默认的类叫做link-active-class
})

export default router